#ifndef WIDGET_H
#define WIDGET_H

#include <QWidget>
#include <QLineEdit>
#include <QComboBox>
#include <QLabel>

class Widget : public QWidget
{
    Q_OBJECT

public:
    Widget(QWidget *parent = 0);
    ~Widget();

private:
    QLineEdit *filePathLineEdit;
    QComboBox *colorTypeComboBox;
    QLineEdit *widthLineEdit;
    QLineEdit *heightLineEdit;

    QLabel *imageLabel;

private:
    void showErrorMessage(const QString &msg);
private slots:
    void _selectFilePath();
    void _showImageFromFile();
};

#endif // WIDGET_H
